package com.yuanfeng.goods.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.goods.entity.GoodsRecIndexEntity;
import com.yuanfeng.goods.mapper.GoodsRecIndexMapper;
import com.yuanfeng.goods.service.GoodsRecIndexService;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class GoodsRecIndexServiceImpl extends ServiceImpl<GoodsRecIndexMapper, GoodsRecIndexEntity>
    implements GoodsRecIndexService{

    @Override
    public ResponseResult updateWebIndexRecGoods(String commonId) {
       this.baseMapper.update(null,new LambdaUpdateWrapper<GoodsRecIndexEntity>()
                      .set(GoodsRecIndexEntity::getRecGoodsId,5)
                      .eq(GoodsRecIndexEntity::getCommonId,commonId));
       return ResponseResult.success();
    }
}




